﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Frame/FrameMasterPage.master" CodeFile="frmCModuleList.aspx.cs" Inherits="Frame_frmCModuleList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<div>
  <table>
       
        <tr>
            <td colspan="5">
                <asp:Label ID="lblDataCount" runat="server" CssClass="summary"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="5">
                <asp:GridView ID="grdPModule" runat="server" 
                    AutoGenerateColumns="False" CssClass="list"                      >
                    <Columns>
                    <asp:BoundField DataField="ITEMNO" HeaderText="显示次序" />
                        <asp:BoundField DataField="CMREF" HeaderText="CMREF" Visible=false />
                        <asp:BoundField DataField="PMREF" HeaderText="PMREF" Visible=false />
                        <asp:BoundField DataField="MODULENM" HeaderText="子模块名称" />
                        <asp:BoundField DataField="TARGET" HeaderText="打开方式" />
                       
                        
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                              <nobr>
                                <asp:LinkButton ID="btnEdit" runat="server"  
                                    Text="编辑" 
                                    CommandArgument='<%# Eval("CMREF") %>' onclick="btnEdit_Click" ></asp:LinkButton>
                                <asp:LinkButton ID="btnDelete" runat="server" Text="删除"   CommandArgument='<%# Eval("CMREF") %>'
                                    OnClientClick="return confirm('你确认要删除该记录吗？');" onclick="btnDelete_Click" 
                                    ></asp:LinkButton>
                            </nobr>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>

         <tr>
            <td colspan="5">
                <asp:Label ID="lblMessage" runat="server" CssClass="ErrorNote" ></asp:Label>
            </td>
        </tr>
         <tr>
            <td colspan="2">
                <asp:Button ID="btnAdd" runat="server" Text="新增" CssClass="btn" onclick="btnAdd_Click" 
                     />
            </td>
            
            <td colspan="3">
                <asp:Button ID="btnBack" runat="server" Text="返回" CssClass="btn" onclick="btnBack_Click" 
                     />
            </td>
        </tr>
    </table>
    </div>
     <asp:HiddenField ID="hidPageCount" runat="server" />
    <asp:HiddenField ID="hidpmref" runat="server" />
    <asp:HiddenField ID="hidcmref" runat="server" />
</asp:Content>